package com.farah.lease.web.admin.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.farah.lease.model.entity.SlideshowInfo;
import com.farah.lease.web.admin.mapper.SlideshowInfoMapper;
import com.farah.lease.web.admin.service.SlideshowInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author 不爱跑步的法拉韶
 * @Date 2024-07-10__15:10
 **/
@Service
public class SlideshowInfoServiceImpl extends ServiceImpl<SlideshowInfoMapper, SlideshowInfo> implements SlideshowInfoService {
    @Autowired
    private SlideshowInfoMapper slideshowInfoMapper;
    @Override
    public IPage<SlideshowInfo> pageSlideshow(IPage<SlideshowInfo> page, Long typeId) {
        return  slideshowInfoMapper.pageSlideshow(page,typeId);
    }

    @Override
    public void saveSlideshow(SlideshowInfo slideshowInfo) {
        slideshowInfoMapper.insert(slideshowInfo);
    }
}
